<!DOCTYPE HTML>
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="../../lib/log.js"></script>
    <script type="text/javascript" src="../../assets/javascript/json2.js"></script>
    <script type="text/javascript">
        var img;
        
        function doIt(){
            img = new Image();
//            img.src = "/test/image/NancySinatra2.jpg";
//            img.src = "";
//            img.src = "";

            /**@see http://www.w3.org/TR/SVG/intro.html#MIMEType
             *@see http://code.google.com/p/javascriptbase64/
             **/
            img.src = "";
            img.onload = function() {
                Log.info("Image loaded");
                
                var o = {'image' : img.src};
                var s = JSON.stringify(o);
                Log.info(s); 
                
            var i = document.createElement('img');
            i.setAttribute("src", img.src);
            document.getElementById("xo").appendChild(i);
            
        }
            
                  
        }
    </script>
  </head>
  <body onload ="doIt();">
      <div id="xo">
          
      </div>
  </body>
</html>
